package com.jaydenxiao.common.basebean;

import android.text.Editable;
import android.view.View;

import com.jaydenxiao.common.commonwidget.NoDoubleClickUtils;

import org.greenrobot.eventbus.EventBus;

/**
 * Created by hasee on 2017/10/25.
 */

public class ItemPresent {


    public void afterTextChanged(Editable s, ItemBean itemBean) {
        itemBean.setValue(s.toString());
        EventBus.getDefault().post(new MsgEvent(MsgEvent.ITEM_EDIT, itemBean));
    }


    public void afterTextChanged2(Editable s, ItemBean itemBean) {
        itemBean.setValue2(s.toString());
    }


    public void afterTextChanged3(Editable s, ItemBean itemBean) {
        itemBean.setValue3(s.toString());
    }


    public void clickEvent(View view, Object object) {
        if (NoDoubleClickUtils.isDoubleClick()) {
            return;
        }
    }

    public void longClickEvent(View view, Object object) {
        if (NoDoubleClickUtils.isDoubleClick()) {
            return;
        }
    }

    public void clickEvent(View view) {
        if (NoDoubleClickUtils.isDoubleClick()) {
            return;
        }
    }

    public void submitData(View view, ItemBean itemBean) {
        if (NoDoubleClickUtils.isDoubleClick()) {
            return;
        }
    }


    public void submitData(View view, String key) {
        if (NoDoubleClickUtils.isDoubleClick()) {
            return;
        }
    }


}
